<?php

namespace app\admin\controller;

class User extends Common
{

    public function getAdmin()
    {
        $uid = $this->isCheckAuth();
        $db = db('admin');
        $data = $db->where(['id' => $uid])->find();
        $userInfo['name'] = $data['username'];
        $userInfo['avatar'] = "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png";
        $userInfo['userid'] = $data['id'];
        $userInfo['notifyCount'] = 0;
        $this->rest($userInfo);
    }
}